package com.wyh.lotterysystem.service;

import com.wyh.lotterysystem.controller.request.ActivityUser;
import com.wyh.lotterysystem.controller.request.LoginRequest;
import com.wyh.lotterysystem.controller.request.PasswordLoginRequest;
import com.wyh.lotterysystem.controller.request.RegisterRequest;
import com.wyh.lotterysystem.dao.dataobject.UserDo;
import com.wyh.lotterysystem.service.dto.LoginDTO;
import com.wyh.lotterysystem.service.dto.RegisterDTO;
import com.wyh.lotterysystem.service.dto.UserListDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserService {
    //注册
    RegisterDTO register(RegisterRequest request);

    //验证码
    boolean sendEmail(String to,String content);

    LoginDTO userLogin(LoginRequest request);

    void sendVerificationCode(String email);

    List<UserListDTO> findUserList(String identity);
}
